window.addEventListener('load',function(){
    
    // alert(11)
    var localNavItems = document.querySelectorAll('.local-nav-items')
    var subnavEntryIcon = document.querySelectorAll('.subnav-entry-icon')
    // console.log(localNavItems);
    
    for( var i = 0 ; i<localNavItems.length;i++ ){
        localNavItems[i].style.backgroundPosition = '0-'+i*32+'px';
    }
    for( var i = 0 ; i<subnavEntryIcon.length-4;i++ ){
        subnavEntryIcon[i].style.backgroundPosition = '0-'+i*55+'px';
    }
})